function tiem(timestamp) {
	const date = new Date(timestamp);
	const pad = (number) => number < 10 ? '0' + number : number;
	const year = date.getFullYear();
	const month = pad(date.getMonth() + 1); // 月份是从0开始的，所以加1
	const day = pad(date.getDate());
	const hours = pad(date.getHours());
	const minutes = pad(date.getMinutes());
	const seconds = pad(date.getSeconds());

	return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
}
//导出
module.exports = {
	tiem
}